package response

import "github.com/gin-gonic/gin"

func CurrencyErrResponse(c *gin.Context, msg string, code int) {
	c.JSON(200, gin.H{
		"code": code,
		"msg":  msg,
		"data": nil,
	})
}
func CurrencySuccessResponse(c *gin.Context, msg string, data map[string]interface{}) {
	c.JSON(200, gin.H{
		"code": 200,
		"msg":  msg,
		"data": data,
	})
}
